<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
	
	<c:url value="logout" var="logoutUrl"/>
	
	Hi <%=SecurityContextHolder.getContext().getAuthentication().getName()%> you are
	
	<sec:authorize access="hasRole('ROLE_USER')">
		user.
	</sec:authorize>
	
	<sec:authorize access="hasRole('ROLE_ADM')" >
		admin.
	</sec:authorize>
	
	<li><a href="/EscolaNet/j_spring_security_logout">Logout</a></li>